//
//  UINavigationItem+Zy.m
//
//  Created by ZengYu on 16/1/19.
//  Copyright © 2016年 ZengYu. All rights reserved.
//

#import "UINavigationItem+Zy.h"

@implementation UINavigationItem (Zy)

#pragma mark - 拷贝导航栏内容
- (void)copyFromeItem:(UINavigationItem *)otherItem {
    self.title = otherItem.title;
    self.titleView = otherItem.titleView;
    self.leftBarButtonItem = otherItem.leftBarButtonItem;
    self.leftBarButtonItems = otherItem.leftBarButtonItems;
    self.rightBarButtonItem = otherItem.rightBarButtonItem;
    self.rightBarButtonItems = otherItem.rightBarButtonItems;
}

@end
